import 'package:json_annotation/json_annotation.dart';
part 'general_type.g.dart';
@JsonSerializable()
// 通用类型类
class GeneralType{
  @JsonKey(name: 'value')
  final String? id;//  Id
  @JsonKey(name: 'label')
  final String? name;//  名称
  GeneralType(this.name,this.id);

  factory GeneralType.fromJson(Map<String, dynamic> json)=>_$GeneralTypeFromJson(json);
  Map<String, dynamic> toJson()=>_$GeneralTypeToJson(this);
}